from steps import Steps
from config import PyKeyboard, wait, driver, options


k = PyKeyboard()
STEPS = Steps()

def start_driver() -> driver:

    option = options()
    option.add_experimental_option("detach", True)

    d = driver(r'E:\chromedriver_win32\chromedriver', chrome_options=option)
    d.maximize_window()

    return d

DRIVER = start_driver()
WAIT = wait(DRIVER, 10)

STEPS.set_wait(WAIT)